///*
// * Project Name: jmax
// * File Name: DataHandler.java
// * Copyright: Copyright(C) 1985-2015 ZKTeco Inc. All rights reserved.
// */
//package com.xdtech.hotel.protocol.server;
//
//import java.io.BufferedOutputStream;
//import java.io.FileOutputStream;
//
//import org.apache.mina.core.buffer.IoBuffer;
//import org.apache.mina.core.service.IoHandlerAdapter;
//import org.apache.mina.core.session.IoSession;
//
//import com.xdtech.jmax.test.FileUploadRequest;
//
///**
// * TODO 一句话功能简述，请确保和下面的block tags之间保留一行空行
// * <p>
// * TODO 功能详细描述，若不需要请连同上面的p标签一起删除
// * 
// * @author <a href="max.zheng@zkteco.com">郑志雄</>
// * @version TODO 添加版本
// * @see 相关类或方法，不需要请删除此行
// * @since 2015-5-15 下午3:15:51
// */
//public class DataHandler extends IoHandlerAdapter
//{
//	public void sessionOpened(IoSession session) throws Exception
//	{
//		System.out.println("server open");
//	}
//
//	public void exceptionCaught(IoSession session, Throwable cause)
//																	throws Exception
//	{
//		System.out.println("exception");
//		session.close(true);
////		super.exceptionCaught(session, cause);
//	}
//
//	public void messageReceived(IoSession session, Object message)
//	{
//		System.out.println("server received"+message.toString());
////		String theMessage = (String) message;
////        String[] result = theMessage.split(" ", 2);
////        String theCommand = result[0];
////        System.err.println(theCommand);
////		byte[] bytes = (byte[]) message;  
////		System.out.println(new String(bytes));
//	}
//
//	public void sessionClosed(IoSession session) throws Exception
//	{
//		System.out.println("server session close");
//	}
//}
